<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Auth extends CI_Controller {

	function __construct()
	{
		parent::__construct();
		//$this->load->database();
		//$this->load->model('helloworld_model');
		
		//$this->load->helper('url');
		//$this->load->config('zs_config');
		$session_id = $this->session->userdata('session_id');
	}
	
	public function index(){
	   	$this->load->view('admin/login');
	}
	

	function login() {
		
		
		$this->session->set_userdata('is_admin_login', true);
		redirect('admin/dashboard');
		
		
		//$this->load->model('user_model');
		
// 		if ($this->form_validation->run() == FALSE)
// 		{
// 			echo validation_errors();
// 			$this->load->view('admin/login');
// 		}
// 		else
// 		{
// 			//$this->load->helper('url');
// 			//echo site_url('admin/dashboard');
// 			redirect('admin/dashboard');
// 		}

		//redirect('admin/dashboard');
		
		
	}

	
}

